package com.test.ssm.article.service;

import com.test.ssm.article.entity.pojo.Article;
import com.test.ssm.article.entity.vo.ResponseMessage;
import com.test.ssm.article.util.helper.MyPage;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface ArticleService {
    MyPage<Article> getAll(Byte newsState, String newsTitle, Integer pageNum, Integer pageSize);
    //List<Article> getAll(Byte newsState,String newsTitle);

    Article checkIsExist(String newsTitle);

    ResponseMessage add(Article article, MultipartFile multipartFile, HttpServletRequest request);
    Article getOneById(String newsId);

    Boolean deleteOneById(String newsId);

    long batchDelete(String newsIds);
}
